package com.karry.yl.domain.system;

import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;

/**
 * 系统资源实体，存储系统中所有的 模块、页面、按钮、操作
 */
@TableName("jg_resources")
public class Resources extends SuperEntity {
    public static final int TYPE_MODULE = 1;
    public static final int TYPE_PAGE = 2;
    public static final int TYPE_SUB_PAGE = 3;
    public static final int TYPE_OPT = 9;


    private String name;  //资源的名称
    private String url;  //资源的访问路径
    private int type;    //  1: 模块  2：主页面 3:附属页面 4:按钮  9: 其它操作
    private String parentModule;   //父级 模块Code
    private String parentPage;   //父级页面Code
    private String code;    //资源的唯一标识 ，模块标识-页面标识 - 按钮标识
    private float sortNo;  //排序权值
    private byte topNav;   //是否在顶部显示快速导航  1: 显示 其它：不显示
    private String mainLogo;
    private int status;//1民办


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getParentModule() {
        return parentModule;
    }

    public void setParentModule(String parentModule) {
        this.parentModule = parentModule;
    }

    public String getParentPage() {
        return parentPage;
    }

    public void setParentPage(String parentPage) {
        this.parentPage = parentPage;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public float getSortNo() {
        return sortNo;
    }

    public void setSortNo(float sortNo) {
        this.sortNo = sortNo;
    }

    public byte getTopNav() {
        return topNav;
    }

    public void setTopNav(byte topNav) {
        this.topNav = topNav;
    }

    public String getMainLogo() {
        return mainLogo;
    }

    public void setMainLogo(String mainLogo) {
        this.mainLogo = mainLogo;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
